package com.shli.dao;

import com.shli.domain.CommentLog;
import org.springframework.stereotype.Repository;

@Repository
public class CommentLogDao  extends BaseDao<CommentLog> {
    public boolean isIpCommented(int spaceId, String ip)
    {
        String hql = "from CommentLog vs where vs.spaceId= spaceid and vs.ip like ?";
        return  find(hql, spaceId,ip).size()>0? true:false;
    }
}
